Encryption apparatus using data encryption standard algorithm

ABSTRACT

An encryption apparatus using a DES encryption algorithm is disclosed. The apparatus for encrypting 64-bit plain text blocks includes: input buffering unit for receiving a plain text block byte-by-byte and outputting a first and a second 32-bit plain text blocks in response to a first clock; encryption unit for performing time multiplexed encryption of the first and the second 32-bit plain text blocks in response to the first clock and a second clock, thereby generating a first and a second 32-bit cipher text blocks; and output buffering unit for receiving the first and the second 32-bit cipher text blocks in response to the second clock and outputting eight 8-bit cipher text blocks.

FIELD OF THE INVENTION

The present invention relates to an encryption apparatus; and, more particularly, to a pipelined encryption apparatus using data encryption standard algorithm.

DESCRIPTION OF THE PRIOR ART

DES (Data Encryption Standard) algorithm has come to the more attention in this environment of the wider usage of networks. Especially, the DES is widely used in Internet security applications, remote access server, cable modem or satellite modem.

The DES is fundamentally a 64-bit block cipher having 64-bit block input and output, 56 bits among the 64-bit key block for encryption and decryption and remaining 8 bits for parity checking the DES receives a 64-bit plain text block and outputs a 64-bit cipher text generated from the 64-bit plain text block and the 56-bit key.

In a major technique, the DES is implemented by permutation (P-Box), substitution (S-Box) and key schedule generating a subkey.

Inside of data encryption is implemented in such a way to iteration of 16 round operations and constructed by an initial permutation (IP) of input part and an inverse initial permutation (IP⁻¹) of output part.

FIG. 1 is a block diagram of a general DES architecture.

Referring to FIG. 1, the general DES architecture includes an initial permutation unit 110, a DES encryption unit 120 and an inverse initial permutation unit 130.

In the DES encryption unit 120, 64-bit plain text block undergone an IP unit is divided into two blocks, respectively registered at a first left register (L₀) and a first right register (R₀). At every round, 32-bit data registered at the left register and the right register undergoes a product transformation and a block transformation. The inverse initial permutation unit 130 performs the inverse initial permutation (IP⁻¹) of 64-bit data transformed by 16-round operation and outputs a cipher text block.

The basic operation unit 120 includes a plurality of cipher function units 12 and exclusive-OR (X-OR) units 122.

32-bit data registered at the first right register (L₀) is encrypted by the cipher function unit f 121 using the subkey (K₁) from a key scheduler and the encrypted 32-bit data is X-ORed with the 32-bit data registered at the first left register (L₀) at the X-OR unit 122. 32-bit data from the X-OR unit 122 is registered at a right register (R₁) and the 32-bit data registered at the first right register (R₀) is swapped and registered at a Left register (L₁) in a next round, which is referred as ‘one round operation’. In DES architecture, 16 round operations are performed by iteration of one round operation.

16-round operation can be expressed as equation (1) and (2). L_(i)=R_(i−1)I=1, 2, . . . 16  (1) R_(i)=L_(i−1)⊕f(R_(i−1), K_(i))i=1, 2, . . . 16  (2)

FIG. 2 is a block diagram of a conventional key scheduler generating a subkey.

Referring to FIG. 2, the conventional key scheduler includes a first permutation choice (PC1) unit 200, a first and a second shift units 220 and 230, and a second permutation choice (PC2) unit 240.

The first permutation choice (PC1) unit 200 performs permutation of 56-bit key data. The permutated 56 bit key data is divided two 28-bit blocks, and the blocks are registered in registers C₀ and D₀. Each of the shift units 220 and 230 respectively shifts corresponding 28 bits registered in C_(i) and D_(i) (i=0, 1, . . . , 15). The shifted key data blocks are registered in a next round registers C_(i+1) and D_(i+1). The second permutation choice (PC2) unit 240 performs permutation of 28-bit blocks registered in the registers C_(i) and D_(i) to output a 48-bit subkey K_(i).

During 16-round operation, the key data blocks of C₁ and D₁ are shifted by 28 bits, such that the data registered in C₀ and D₀ are equal to those registered in C₁₆ and D₁₆.

FIG. 3 is a detailed diagram of a cipher function unit and a S-Box permutation unit of a general DES architecture.

Referring to FIG. 3, the cipher function f includes an expansion permutation unit 310, an exclusive-OR (XOR) unit 320, an S-Box permutation unit 330, a P-Box permutation unit 340 and an XOR unit 350.

The expansion permutation unit 310 performs expansion permutation over 32-bit data (R_((i−1))) from a right register registering 32-bit text block to output 48-bit data.

The XOR unit 320 performs XOR operation over the 48-bit data from the expansion permutation unit 310 and a subkey (K_(i)) from a key scheduler.

The S-Box permutation unit 330 performs substitution over 48-bit data from the XOR unit 320 to output 32-bit data.

The P-Box permutation unit 340 performs permutation over 32-bit data from the S-Box permutation unit 330.

The XOR unit 350 performs XOR operation over 32-bit data from the P-Box permutation unit 340 and 32-bit data (L_((i−1))) from a left register.

The key scheduler includes a first permutation choice (PC1) unit 360, two shift units 370 and 380 and a second permutation choice (PC2) unit 380. Each of the shift units 160 and 170 respectively shifts corresponding 28 bits, half of 56-bit key data.

The PC2 unit 390 receives two blocks from the shift units 160 and 170 to compress them to the sub key.

In particular, the S-Box permutation unit 330 includes 8 S-boxes for receiving 48-bit data and outputting 32-bit data. That is, 48-bit data blocks is divided into 8 6-bit data, each applied to the corresponding S-Box of the 8 S-Boxes and each of the 8 S-Boxes outputs 4-bit data. Accordingly, 48-bit data is permutated to 32-bit data. The S-Box permutation unit 330 requires a memory, e.g., a programmable logic array (PLA) or a read only memory (ROM), because it employs table look-up technique. Since each of the S-boxes outputs 4 bits for 6- bit input, it requires 64×4 memory capability and the S-Box permutation unit 130 requires 8×64×4 memory capability. Accordingly, the S-Box permutation unit 330 takes relatively large area in a chip.

Generally, there are lots of data blocks to be encrypted are with compared to a given key in many cases. At this time, performance of encryption can be increased by using a pipeline structure. Pipelines used in the DES architecture are classified as a micro pipeline and a macro pipeline in accordance with a level to which is applied.

The micro pipeline structure is a structure pipelining an iterative 16-round operation of the DES encryption unit, and the micro pipeline structure can be extended up to 16-step. If M-step micro pipeline structure is used, M plain next blocks car be simultaneously encrypted, thereby increasing the throughput of the encryption apparatus by M times. However, since M-round DES operations are simultaneously performed, M S-Box permutation units are necessary in order to prevent data contention problem. Since additional S-Box permutation units are should be implemented, the chip size of the encryption apparatus is increased. Also, the M-step pipeline structure always has a latency of 16 clock cycles.

FIG. 4 is a block diagram of a conventional 3-step macro pipeline DES architecture.

Referring to FIG. 4, the conventional 3-step macro pipeline DES architecture includes three steps.

In a first step, 64-bit data from first˜input-first-output (FIFO) register is sequentially inputted to eight (8) input buffer registers (IBR). In a second step, 64-bit plain text block is received from the IBR and performed of encryption operation, thereby outputting 64-bit cipher text. In a third step, the 64-bit cipher text is outputted from eight (8) output buffer registers to a FIFO register.

A period of the macro pipeline is decided in accordance with a maximum time among times for data input, DES operation and data output.

A data input rate to the DES encryption unit is decided based on a speed of the DES encryption unit rather than a speed of the encryption system. In case of DES architecture used for networking, the period of the macro pipeline is decided in accordance with a maximum transmission rate of a modulator and a demodulator, and a speed of an external host microprocessor.

In general, an input/output rate of the DES encryption unit is slow. Since the data in moved byte-by-byte (8 bits) in the external system of the DES encryption unit and the DES encryption unit performs encryption of 64-bit data and outputs encrypted 64-bit data, there are necessary an input register and an output register. The input register gathers eight bytes of input data and transmits the gathered eight byte data to the DES encryption unit. The output register output eight byte data by one byte.

As mentioned above, the conventional micro and macro pipeline architecture has a large size and a slow speed.

SUMMARY OF THE INVENTION

Therefore, it is an object of the present invention to provide an encryption apparatus having a small size, a high speed and minimum power consumption.

In accordance with an aspect of the present invention, there is provided an apparatus for encrypting 64-bit plain text blocks, comprising: input buffering unit for receiving a plain text block byte-by-byte and outputting a first and a second 32-bit plain text blocks in response to a first clock; encryption unit for performing time multiplexed encryption of the first and the second 32-bit plain text blocks in response to the first clock and a second clock, thereby generating a first and a second 32-bit cipher text blocks; and output buffering unit for receiving the first and the second 32-bit cipher text blocks in response to the second clock and outputting eight 8-bit cipher text blocks.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other objects and features of the instant invention will become apparent from the following description of preferred embodiments taken in conjunction with the accompanying drawings, in which:

FIG. 1 is a block diagram of a general DES architecture;

FIG. 2 is block diagram of a conventional key scheduler generating a subkey;

FIG. 3 is a block diagram of a cipher function unit and a S-Box permutation unit of a general DES architecture;

FIG. 4 is a block diagram of a conventional 3-step macro pipeline DES architecture;

FIG. 5A is a block diagram of a general DES encryption unit;

FIG. 5B is a block diagram of a 2-step micro pipeline DES architecture;

FIG. 6 is a block diagram of DES architecture using a macro pipeline and a micro pipeline architectures in accordance with the present invention;

FIG. 7 is a detailed block diagram of a time multiplexed cipher function unit in accordance with the present invention;

FIG. 8 is a block diagram of a key scheduler of the time multiplexed cipher function unit in accordance with the present invention;

FIG. 9 is a timing diagram for explaining operation of the DES architecture having the macro pipeline and the micro pipeline structures in accordance with the present invention;

FIG. 10 is a timing diagram for explaining operation of the key scheduler of the time multiplexed cipher function in accordance with the present invention;

FIG. 11 is a timing diagram for explaining operation of the conventional 16-round DES architecture and the 8-round DES architecture of the present invention; and

FIG. 12 is a timing diagram for explaining performance of the conventional 16-round DES architecture and the 8-round DES architecture of the present invention.

PREFERRED EMBODIMENT OF THE INVENTION

Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

FIG. 5A is a block diagram of a general DES encryption unit, and FIG. 5B is a block diagram of a 2-step micro pipeline DES architecture.

Referring to FIG. 5A, in a general DES architecture, two 32-bit blocks L₀ and R₀ which are performed of initial permutation are registered in a left and a right registers in response to a clock. In each round, product transformation and block transformation are performed. The 32-bit block registered in the right register R₀ is encrypted by a cipher function f and then X-ORed with the 32-bit block L₀ registered in that left register by an exclusive-OR (X-OR) unit, which is referred as the product transformation. 32-bit date from the X-OR unit is swapped with 32-bit data from the right register and registered in the right register, which is referred as the block transformation. In the general DES architecture, there is a problem that 16 clock cycles are necessary for the DES operation because of the input operations to the registers. 32-bit block data can be expressed by equation (3) based on equations (1) and (2). R_(i)=R_(i−2)⊕f(R_(i−1), K_(i))i=1, 2, . . . 16  (3)

Referring to FIG. 5B, 2-step micro pipeline DES architecture includes two steps. In a first step, an initial 32-bit block R₀ is encrypted by a cipher function f_(A) 550 using a subkey K_(A) from a key scheduler and the encrypted 32-bit data is X-Ored with an initial 32-bit block L₀. 32-bit data R₁ from the X-OR unit 560 is registered at a right register B0 510 in response to a first clock (CLK2). In a second step, the 32-bit data block registered in the right register B0 is encrypted by a cipher function f_(B) 520 using a sub-key K_(B) from the key scheduler and the encrypted 32-bit data is X-Ored with the initial 32-bit block R₀. 32-bit data R₂ from the X-OR unit 530 is registered at a left register A0 540 in response to a second clock (CLK1).

In the 2-step micro pipeline DES architecture, since encryption operations are performed based on the equation (3), the 32-bit blocks are registered in response to two clocks, in one period for which one register maintains the registered values, the other register can register a new value. In other words, for one period, one register maintains a value and the other register can register a new value. If values of permutations R_(i) (i−1, 2, . . . 16) are alternatively stored two registers, adjacent values of R₁ can be accessed for a half of a period. Since the values R_(i−1) and R_(i−2) computed in the previous rounds can be accessed within a half of one period, in order to alternatively store the values of R_(i) computed by the equation (3), the cipher function operation should be performed within a half of one period. In other words, two cipher function units are time-multiplexed in one period, two cipher function units can be implemented by using a S-Box permutation unit.

Referring to FIG. 5B, the micro pipeline DES includes two registers of which clocks are inverse and a time multiplexed cipher function unit. The micro pipeline DES does not simultaneously encrypt two plain text blocks, however, reduces a number of clocks necessary for encrypting one plain text block, thereby minimizing power consumption of the DES chip. Since one S-Box permutation unit is used, the micro pipeline DES has small size similar to the DES architecture of FIG. 5A.

FIG. 6 is a block diagram of DES architecture using a macro pipeline and a micro pipeline architectures in accordance with the present invention.

Referring to FIG. 6, the macro pipeline includes three steps. In a first step, 64-bit input data block is divided into eight 8-bit blocks, every four 8-bit blocks are sequentially inputted, gathered and stored into a left input buffer register (IBR(L)) 610 and a right input buffer register (IBR(R)) 620. In a second step, each 32-bit data block from the left and the right input buffer registers is alternatively inputted to a first and a second cipher function units and encrypted for 8 rounds. In a third step, each 32-bit data block is divided into four 8-bit blocks and outputted by 8-bit block through a left output buffer register (OBR(L)) 640 and a right output buffer register OBR(R)) 650.

In more detail description of the second step, 32-bit data block A_(i) registered in the left input buffer register (IBR(L)) 610 is encrypted by the cipher function (f_(A)) 634 using the sub-key K_(A) from the key scheduler, the encrypted data block is X-ORed with the 32-bit data block B_(i) registered in the right input buffer register 620 by a X-OR unit 635. 32-bit data from the X-OR unit 635 is registered in a right register (B0), 636 in response to a second clock (˜CLK). 32-bit data block B_(i) registered in the right input buffer register (IBR(R)) 620 is encrypted by the cipher function (f_(B)) 631 using the sub-key K_(B) from the key scheduler, the encrypted data block is X-ORed with the 32-bit data block A_(i) registered in the left input buffer register 610 by a X-OR unit 632. 32-bit data from the X-OR unit 632 is registered in a left register (A0) 633 in response to a first clock (CLK).

While data input/output Is performed 64-bit by 64-bit in the DES encryption unit, data input/output in outside of the DES encryption unit is performed 8-bit by 8-bit out of the DES encryption unit. Latencies due to input/output into/from the DES encryption, unit can be hidden by using 3-step macro pipeline DES architecture.

While the conventional DES architecture illustrated in FIG. 5A respectively computes and stores R_(i) and L_(i) in two registers 16 times, the DES architecture in the present invention computes only R_(i) and alternatively stores R_(i) in two registers. In other words, each register stores R_(i) only eight times. The input of the register A0 is IBR(L)⊕ f_(A) or A0⊕ f_(B), and the output of the register A0 is used for operation A0⊕ f_(B) or stored in the register OBR(L). Output of the register B0 is used for operation B0⊕ f_(A) or stored in the register OBR(R).

FIG. 7 is a detailed block diagram of a time multiplexed cipher function unit in accordance with the present invention.

Referring to FIG. 7, a time multiplexed cipher function unit includes two expansion permutation units 710 and 720, two exclusive-OR (X-OR) units 730 and 740, a multiplexer 750, a S-Box permutation unit 760, a P-Box permutation unit 770 and a demultiplexer 780.

A 32-bit data block A_(i) is expanded to 48-bit block by the first expansion permutation unit 710. The 48-bit block is X-ORed with a subkey K_(A) from the key scheduler by the X-OR unit 730. A 32-bit data block B_(i) is expanded to 48-bit block by the second expansion permutation unit 720. The 48-bit block is X-ORed with a subkey K_(L) from the key scheduler by the X-OR unit 740. One of the 48-bit blocks from the X-OR units 720 and 740, is selected by the multiplexer 750 based on a selection signal. The 48-bit data block is stored in and substituted into 32-bit data block by the S-Box permutation unit 760. The 32-bit data block from the S-Box permutation unit 760 is permutated by the P-Box permutation unit 770. The 32-bit data block from the P-Box permutation unit 770 is outputted by the demultiplexer 780 based on the selection signal.

The multiplexer 750 and the demultiplexer 780 operated based on the selection signal output 32-bit data f_(A) at a first half period of the first clock (CLK1) and 32-bit data f_(B) at a second half period of the first clock (CLK1). In other words, the time multiplexed cipher function unit receives and performs cipher function of 32-bit data A_(i) and the sub-key K_(A) and outputs f_(A) for the first half period of the first clock (CLK1) by using the expansion permutation unit 710, the X-OR unit 730, the S-Box 760 and the P-Box 770. The time multiplexed cipher function unit receives and performs cipher function of 32-bit data B_(i) and the sub-key K_(L) and outputs f_(B) for the second half period of the first clock (CLK1) by using the expansion permutation unit 720, the X-OR unit 740, the S-box 760 and the P-Box 770. The expansion permutation units 710 and 720 are implemented by wiring and the S-Box permutation unit 760 is by a read only memory (ROM) or a programmable logic array (PLA). In the DES apparatus of the present invention, two cipher functions in the time multiplexed cipher function unit are operated for one period by using one S-Box permutation unit.

FIG. 8 is a block diagram of a key scheduler of the time multiplexed cipher function unit in accordance with the present invention.

Referring to FIG. 8, the key scheduler of the time multiplexed cipher function unit includes two key scheduling units each having a first permutation choice (PC1) unit 800, two registers 810 and 820, shift units 830 and 840, and a second permutation choice (PC2) unit 850.

In a first key scheduling unit, the PC1 unit 800 performs permutation of 56-bit key data. Each of registers (C_(A)) 810 and (D_(A)) 820 stores 28 bits, half of 56-bit key data in response to a first clock (CLK1). Each of the shift units 830 and 840 respectively shifts corresponding the 28-bit key data from the registers by a predetermined number of bits, e.g., two, three, or four bits. The second permutation choice unit 850 receives two 28-bit key blocks and generates a first subkey K_(A).

A second key scheduling unit has the same elements as the first key scheduling unit, however, each element is operated in response to a second clock (˜CLK1).

The number of shifted bits in the shift units 830 and 840 at each round is described in tables of FIG. 8.

The key scheduling unit includes two shifters and registers and the PC1 and PC2 units 800 and 850 implemented by wiring. Since a size of an additional 56-bit register is very small as compared with that of the S-Box permutation unit, the additional 56-bit register takes relatively small area in a chip. Accordingly, the additional 56-bit register is not critical problem in integrating the encryption apparatus in a chip.

FIG. 9 is a timing diagram for explaining operation of the DES architecture having the macro pipeline and the micro pipeline structures in accordance with the present invention.

Referring to FIG. 9, the DES architecture receives initial permuted plain test (y₀, z₀) , (a₀, b₀), (c₀, d₀) in order and computed z_(i), b_(i), d_(i) (i=1, 2, . . . 16) and outputs (z₁₆, z₁₅), (b₁₆, b₁₅), (d₁₆, d₁₅).

For easy description, only process of computing b_(i) from (a₀, b₀) and outputting (b₁₆, b₁₅) will be described. 64-bit plain text after initial permutation is divided into two 32-bit blocks a₀, and b₀. In other words, a₀=L₀=R⁻¹, and b₀−R₀. The DES encryption unit computes values b₁, b₂, . . . , b₁₆ (b_(i)=R_(i)). Before computing b_(i), a subkey K_(i) is provided to a cipher function unit from a key scheduler.

For sight cycles before t₀, data which is inputted byte-by-byte is gathered in the input buffer register (IBR). The left buffer register (IBR(L)) remains b₀ and the right buffer register (IBR(R)) remains a₀ at [t₀−t₂]. At a next clock, each of the input buffer registers gathers one byte of a next plain text block c₀ and d₀. After eight clocks, the input buffer registers remain c₀ and d₀ at [t₁₆−t₁₈].

The output buffer registers (OBR) load from z₁₆ and z₁₅ from A0 and B0 at t₁, and output the inverse permuted data block at t₁ byte-by-byte for 8 cycles.

a₀ and b₀ registered in the input buffer register (IBR) can be accessed at [t₀−t₁], the cipher function f_(A) is computed at [t₀−t₁] by using the subkey K_(A) from the key scheduler, b₁−a₀ ⊕ f(b₀, K₁) can be stored in the register 30 at t₁.

Since b₀ and b₁ registered in the IBR(L) and B0 can be accessed at [t₁−t₂], the cipher function f_(B) in computed at [t₁−t₂] by using the subkey K₂ from output K_(B) of the key scheduler, b₂=b₀ ⊕ f(b₁, K₂) can be stored in the register A0 at t₂.

Since b₁ and b₂ registered in the B0 and A0 can be accessed at [t₂−t₃], the cipher function f_(A) is computed at [t₂−t₃] by using the subkey K₃ from output K_(A) of the key scheduler, b₃=b₁ ⊕ f(b₂, K₃) can be stored in the register B0 at t₃.

Computation of b₁ is started at t₀, and then, each of b₂, b₃, . . . , b₁₅ is computed and stored at the corresponding register. After eight clocks, b₁₆ is stored in the register A0 at t₁₆, thereby terminating DES operation of a₀ and b₀. Simultaneously, DES operation of c₀ and d₀ is performed at t₁₆.

The subkey K_(i) (i=1, 2, . . . , 16) is 48-bit block generated by dividing the 56-bit initial key data from the first permutation choice (PC1) unit into two 28-bit blocks, by shifting each of the 28-bit blocks by 1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28 (=0) bit(s), and by permuting the shifted blocks in the second permutation choice (PC2) unit.

In the present invention, since the cipher function performs a time multiplexed operation, two cipher functions are operated and two subkeys are generated for a period. In order to generate two subkeys for one period, two key scheduling units each performing having 8-round operation of FIG. 8 are used. A first key scheduling unit is driven in response to the first clock (CLK1) and generates K₁, K₃, K₅, K₇, K₉, K₁₁, K₁₃, K₁₅ for 8 rounds, a second key scheduling unit is driven in response to the second clock (CLK2) and generates K₂, K₄, K₆, K₈, K₁₀, K₁₂, K₁₄, K₁₆ for 8 rounds.

FIG. 10 is a timing diagram for explaining operation of the key scheduler of the time multiplexed cipher function in accordance with the present invention.

Referring to FIG. 10, K_(A) and K_(B) denote access times to the subkeys necessary for the time multiplexed cipher function units. TS_(A) and TS_(B) denote numbers of shifted bits of the initial key block after the first permutation choice unit (PC1) (C_(A), D_(A)) and (C_(B), D_(B)) denote the subkeys obtained by permuting output data blocks of the registers C_(A), D_(A) and C_(B), D_(B) through the second permutation choice unit (PC2). S_(A) and S_(B) denote numbers of shifted bits in each round (P₁, Q₁) in order to obtain the total numbers of shifted bits described in TS_(A) and TS_(B).

Processes for generating the subkey will be described.

In a first round (P₀, Q₀), since TS_(A) and TS_(B) are 1 and 2, the subkeys K₁ and K₂ are generated by shifting the initial key from the PC1 by one and two bits and permuting the shifted key blocks through the PC2.

In a second round (P₁, Q₁), since TS_(A) and TS_(B) are 4 and 6, in order to generate the subkeys K₃ and K₄, the left shifters shift the key blocks stored in the corresponding registers to left by 3 (=4−1) and 4 (=6−2) bits.

In a third round (P₂, Q₂), since TS_(A) and TS_(B) are 8 and 10, in order to generate the subkeys K₅ and K₆, the left shifters shift the key blocks stored in the corresponding registers to left by 4 (=8−4) and 4 (=10−6) bits.

In each round (P_(i), Q_(i)), the key blocks stored in the corresponding registers are shifted to left by S_(A) and S_(B) bits, and the key blocks are shifted by TS_(A)=27 and TS_(B)=28 (=0) in the eighth round (P₇, Q₇). Then, in order to return to the first round, i.e., TS_(A)=1 and TS_(B)−2, S_(A) and S_(B) should be two (2) respectively. However, in case that initial DES operation is performed or the initial key is stored in the registers C_(A) and D_(A) after a reset of system, S_(A) is one (1).

FIG. 11 is a timing diagram for explaining operation of the conventional 16-round DES architecture and the 8-round DES architecture of the present invention.

Referring to FIG. 11, the DES encryption apparatus of the present invention performs operations faster than the conventional DES encryption apparatus.

FIG. 12 is a timing diagram for explaining performance of the conventional 16-round DES architecture and the 8-round DES architecture of the present invention.

Referring to FIG. 12, the 8-round DES architecture of the present invention can reduce power consumption.

The architecture of the present invention can be extended. For example, 2N-step micro pipeline architecture can be implemented by combining N two-step micro pipeline architectures in serial. The extended architecture includes N cipher function units which are not time multiplexed, N S-Box permutation units are necessary, however, N plain text blocks can be simultaneously encrypted for 8 rounds. In other words, the throughput of the encryption apparatus is increased by N times.

M-step micro pipeline architecture can be implemented by combining M micro pipeline architectures of FIG. 5B in serial. The extended architecture should have M S-Box permutation units, M plain text blocks can be simultaneously encrypted for 16 rounds. In other words, the throughput of the encryption apparatus is increased by M times.

Comparison of four architectures are described in table 1.

TABLE 1 S-Box Latency through- permutation Core (cycle) put unit register virtual 8 1 1 2 2-step pipeline general 16 1 1 2 1-step pipeline virtual 8 2 2 4 4-step pipeline general 16 2 2 4 2-step pipeline virtual 8 4 4 8 8-step pipeline general 16 4 4 8 4-step pipeline virtual 16-step 8 8 8 16 pipeline general 16 8 8 16 8-step pipeline

As described above, in the present invention, by using 2-step pipeline architecture, values of 16 registers are computed and alternatively stored in the corresponding registers, and therefore, DES encryption operation is reduced from 16 rounds to 8 rounds, thereby reducing power consumption due to switching. Using 3-step macro pipeline architecture having input, DES encryption operation and output, latency due to low rate data input/output can be hidden into DES operation time, to thereby increase efficiency of macro pipeline. Since only one S-Box permutation unit is used by time dividing the cipher function unit, size of the encryption chip is minimized. The number of plain text blocks which are simultaneously encrypted is increased by extending the pipeline architecture. The encryption apparatus of the present invention reduces the power consumption by using the slower clock than that of the conventional encryption apparatus by two times. Therefore, the encryption apparatus has a small size and a low consumption.

Although the preferred embodiments of the invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying claims. 

1. An apparatus for encrypting N-bit plain text blocks, comprising: input means for receiving a plain text block byte-by-byte and outputting first and second N/2-bit plain text blocks in response to a first clock; encryption means for performing time multiplexed encryption of the first N/2-bit plain text block by using the first clock and time multiplexed encryption of the second N/2-bit plain text block by using a second clock to thereby generate first and second N/2-bit cipher text blocks; and output means for receiving the first and the second N/2-bit cipher text blocks in response to the second clock and outputting N/8-bit cipher text blocks, wherein N is a positive integer.
 2. The apparatus as recited in claim 1, wherein the positive integer N is
 64. 3. The apparatus as recited in claim 2, wherein the encryption means includes: a cipher function unit for receiving the first and the second 32-bit plain text blocks from the input means in response to the first clock, encrypting the first and the second 32-bit plain text blocks using a first a subkey and a second subkey, respectively, and outputting a first encrypted 32-bit block in response to the first clock and a second encrypted 32-bit block in response to the second clock; a first XOR Unit for performing XOR operation of the first encrypted 32-bit block and the second 32-bit plain text, thereby generating a first encrypted block; a second XOR unit for performing XOR operation of the second encrypted 32-bit block and the first 32-bit plain text, thereby generating a second cipher block; a left register for storing the second cipher block and outputting the second cipher block to the cipher function unit in response to the first clock; and a right register for storing the first cipher block and outputting the first cipher block to the cipher function unit in response to the second clock.
 4. The apparatus as recited in claim 3, wherein the second clock is an inverse signal of the first clock.
 5. The apparatus as recited in claim 3, wherein the cipher function unit includes: a first expansion permutation unit for performing an expansion permutation of the left 32-bit plain text block to generate a first 48-bit block; a second expansion permutation unit for performing an expansion permutation of the right 32-bit plain text block to generate a second 48-bit block; a third XOR unit for performing XOR operation of the first 48-hit block and the first subkey from a key scheduler, thereby generating a first XORed 48-bit block; a fourth XOR unit for performing XOR operation of the second 48-bit block and the second subkey from the key scheduler, thereby generating a second XORed 48-bit block; a multiplexer for selecting one of the first and the second XORed 48-bit blocks and outputting a XORed 48-bit block in accordance a control signal; a S-Box permutation unit for receiving the XORed 48-bit block from the multiplexer and outputting 32-bit data block; a P-Box permutation unit for permuting the 32-bit data block from the S-Box permutation unit to generate a permuted 32-bit block; and a demultiplexer for outputting the permuted 32-bit block to one of two output ports in accordance with the control signal.
 6. The apparatus as recited in claim 5, wherein the key scheduler includes: a first scheduling means for receiving a 56-bit key block and generating the first subkey in accordance with the first clock; and a second scheduling means for receiving the 56-bit key block and generating the second subkey in accordance with the second clock.
 7. The apparatus as recited in claim 6, wherein the first key scheduling means includes: a first permutation choice unit for permuting the 56-bit key block; a first register for storing left 28 bits among the 56-bit key block from the first permutation choice unit in accordance with the first clock; a second register for storing right 28 bits among the 56-bit key block from the first permutation choice unit in accordance with thee first clock; two shifters, each for shifting the 28 bits stored in the first and the second registers by a predetermined number of bits; and a second permutation choice unit for permuting the 28 bits stored in the first and the second registers, thereby generating the first subkey.
 8. The apparatus as recited in claim 7, wherein the second key scheduling means includes: a third permutation choice unit for permuting the 56-bit key block; a third register for storing left 28 bits among the 56-bit key block from the third permutation choice unit in accordance with the second clock; a fourth register for storing right 28 bits among the 56-bit key block from the third permutation choice unit in accordance with the second clock; two shifters, each for shifting the 28 bits stored in the third and the fourth registers by a predetermined number of bits; and a fourth permutation choice unit for permuting the 28 bits stored in the third and the fourth registers, thereby generating the second subkey. 